package com.tax.enums;
/**
 * @author 段德辉
 */
public enum RedisKey {
    PHONE_SMS_REG_CODE("phone_sms_reg_code:", "[phoneNum] 短信验证码"),
    ;

    private final String prefix;
    private final String desc;
    RedisKey(String prefix, String desc){
        this.prefix = prefix;
        this.desc = desc;
    }

    public String getValue(String key) {
        return prefix + key;
    }

    public String getPrefix() {
        return prefix;
    }

    public String getDesc() {
        return desc;
    }
}
